package com.cogent.report.display.impl;

import java.util.HashMap;

import com.cogent.business.helper.EnumHelper;
import com.cogent.common.util.MapUtil;
import com.cogent.report.display.IReportDisplay;
import com.cogent.report.domain.ReportDisplayFieldDomain;

public class EnumDisplayImpl implements IReportDisplay {	
	public String getDisplayValue(ReportDisplayFieldDomain displayFieldDomain, HashMap dataMap) {
		return EnumHelper.getEnumValue(displayFieldDomain.getTypecode(),MapUtil.getStringValue(dataMap, displayFieldDomain.getName()));
	}
}
